<?php echo $this->load->view('meta'); ?>
<link rel="stylesheet" href="<?=base_url()?>css/admin.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?=base_url()?>css/datepicker.css" type="text/css" media="screen" />
<script src="<?=base_url();?>js/datepicker.js"></script>
<title>xa-ncsu | calendar</title>
<?php echo $this->load->view('header'); ?>
<?=form_open('calendar/doEditPost');?>
<fieldset>
	<legend><span>create a calendar entry</span></legend>
	<ol>
		<li><label for="name">subject</label>
			<input type="text" name="name" value="<?=$event->name;?>" size="30" /></li>
		<li><label for="description">description</label>
			<input type="text" name="description" value="<?=$event->description;?>" size="30" /></li>
		<li><label for="start">start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time</label>
			<input type="text" name="start" value="<?=substr($event->start,0,10);?>" class="format-y-m-d divider-dash" size="10" maxlength="10" />
			<input type="text" name="start_time" value="<?=substr($event->start,11,5);?>"size="5" maxlength="5"/></li>
		<li><label for="end">end&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time</label>
			<input type="text" name="end" value="<?=substr($event->end,0,10);?>" class="format-y-m-d divider-dash" size="10" maxlength="10" />
			<input type="text" name="end_time" value="<?=substr($event->end,11,5);?>"size="5" maxlength="5"/></li>
		<li><label for="location">location</label>
			<input type="text" name="location" value="<?=$event->location;?>" size="30" /></li>
			<li><?=form_submit('','publish')?> <?if($admin) echo anchor('admin/events', 'Cancel'); else echo anchor('calendar/full', 'Cancel');?></li>
			<?=form_hidden('id', $this->uri->segment(3))?>
	</ol>
</fieldset>
<?=form_close()?>
<?php echo $this->load->view('footer'); ?>